#include <iostream>

struct Student{
    char name[20];
    unsigned short age;
};
void plusAge(Student* stu);
int main(){
    using namespace std;
    char c[] = "123456";
    cout<<sizeof c<<endl;     // 7
    Student stu = {"zs",10};
    plusAge(&stu);
    cout<<stu.age<<endl;

    return 0;
}
void plusAge(Student* stu){        // 当参数为结构体并且结构体占用内存偏大时，参数应当为结构体的指针
    stu->age++;
}